﻿using System;

#region MIT License text
/*
Copyright (c) 2009 Mark van Straten - Q42 B.V.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
#endregion

namespace Q42.Wheels.Api.Nabaztag
{
    /// <summary>
    /// General exception for all Nabaztag responses
    /// </summary>
    public class NabaztagResponseException : Exception
    {
        /// <summary>
        /// Exception
        /// </summary>
        public NabaztagResponseException() : base() { }
        /// <summary>
        /// Exception
        /// </summary>
        /// <param name="message"></param>
        public NabaztagResponseException(string message) : base(message) { }
        /// <summary>
        /// Exception
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public NabaztagResponseException(string message, Exception innerException) : base(message, innerException) { }
    }

    /// <summary>
    /// Too many messages sent in the allowed time try again later please
    /// </summary>
    public class ToManyMessagesSentException : NabaztagResponseException
    {
        /// <summary>
        /// ABUSESENDING return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public ToManyMessagesSentException(string message) : base(message) { }
    }

    /// <summary>
    /// Your token or serial number are not correct
    /// </summary>
    public class CredentialsException : NabaztagResponseException
    {
        /// <summary>
        /// NOGOODTOKENORSERIAL return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public CredentialsException(string message) : base(message) { }
    }

    /// <summary>
    /// Your message id is not correct or is private
    /// </summary>
    public class MessageNotSentException : NabaztagResponseException
    {
        /// <summary>
        /// MESSAGENOTSENT return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public MessageNotSentException(string message) : base(message) { }
    }

    /// <summary>
    /// Your nabcast id is not correct or is private
    /// </summary>
    public class NabCastNotSentException : NabaztagResponseException
    {
        /// <summary>
        /// NABCASTNOTSENT return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public NabCastNotSentException(string message) : base(message) { }
    }


    /// <summary>
    /// Your text could not be sent
    /// </summary>
    public class TextToSpeechException : NabaztagResponseException
    {
        /// <summary>
        /// TTSNOTSENT return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public TextToSpeechException(string message) : base(message) { }
    }

    /// <summary>
    /// Your chor could not be sent (bad chor)
    /// </summary>
    public class ChoreographyException : NabaztagResponseException
    {
        /// <summary>
        /// CHORNOTSENT return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public ChoreographyException(string message) : base(message) { }
    }

    /// <summary>
    /// Your ears command could not be sent
    /// </summary>
    public class EarPositionException : NabaztagResponseException
    {
        /// <summary>
        /// EARPOSITIONNOTSENT return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public EarPositionException(string message) : base(message) { }
    }

    /// <summary>
    /// Your webradio could not be sent
    /// </summary>
    public class WebRadioNotSentException : NabaztagResponseException
    {
        /// <summary>
        /// WEBRADIONOTSENT return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public WebRadioNotSentException(string message) : base(message) { }
    }

    /// <summary>
    /// Please check urlList parameter !
    /// </summary>
    public class ParametersMissingException : NabaztagResponseException
    {
        /// <summary>
        /// NOCORRECTPARAMETERS return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public ParametersMissingException(string message) : base(message) { }
    }

    /// <summary>
    /// V2 rabbit can use this action
    /// </summary>
    public class NotANabaztagTagException : NabaztagResponseException
    {
        /// <summary>
        /// NOTV2RABBIT return message from violet service
        /// </summary>
        /// <param name="message"></param>
        public NotANabaztagTagException(string message) : base(message) { }
    }


}
